<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<c:set var="module" value="brand"/>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
		<form action="${ctx }/admin/brand/save?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
			<div class="form-group">
                 <label class="col-sm-2 control-label">品牌名称</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="name" value="${n.name }">
                 </div>
             </div>	
             <div class="form-group">
                 <label class="col-sm-2 control-label">品牌编号</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="code" value="${n.code }"  maxlength="1">
                 </div>
             </div>	
             <div class="form-group">
                 <label class="col-sm-2 control-label">是否推荐</label>
                 <div class="col-sm-10">
             					<select name="recommend" id="" class="form-control">
                                		<option value="">-是否推荐-</option>
                                		<option value="1" ${n.recommend eq 1 ? 'selected' : '' }>是</option>
                                		<option value="0" ${n.recommend eq 0 ? 'selected' : '' }>否</option>
                                	</select>    	
                 </div>
             </div>	
               <div class="form-group">
                 <label class="col-sm-2 control-label">品牌介绍</label>
                 <div class="col-sm-10">
                	<textarea rows="3" cols="10" class="form-control" name="content">${n.content }</textarea>
                 </div>
             </div>	
              <div class="form-group">
                 <label class="col-sm-2 control-label">大图</label>
                 <div class="col-sm-10">
                 	<input type="hidden" name="headImage" id="headImage" value="${n.headImage }" />
                 	<div class="my-images" single="true" images="${n.headImage }" id="headImage1" field="headImage">
                 	</div>
                 	
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">品牌图标</label>
                 <div class="col-sm-10">
                 	<input type="hidden" name="image" id="image" value="${n.image }" />
                 	<div class="my-images" single="true" images="${n.image }" id="image1" field="image">
                 	</div>
                 	
                 </div>
             </div>	
            
             
             <div class="form-group">
                 <label class="col-sm-2 control-label">3D URL</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="view3dURL" value="${n.view3dURL }">
                 </div>
             </div>
           
              <div class="form-group">
                 <label class="col-sm-2 control-label">关联方案图片</label>
                 <div class="col-sm-10">
                 	
                 	<input type="hidden" name="view3dImage" id="view3dImage" value="${n.view3dImage }" />
                 	<div class="my-images" single="true" images="${n.view3dImage }" id="view3dImage-div" field="view3dImage">
                 	</div>
                 </div>
             </div>	
             <div class="form-group">
                 <label class="col-sm-2 control-label">展厅链接</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="senceTravel" value="${n.senceTravel }">
                 </div>
             </div>	
        	
		</form>
</div>

<%@include file="/common/foot.jsp" %>

<script>
$(document).ready(function() {
	init_images('image1');
	init_images('headImage1');
	init_images('view3dImage-div');
});
</script>
</body>
</html>
